<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>集成工程 | 简介</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../part0/demoyun_xing_xiao_guo_ji_shi_yong.html" />
    
    
    <link rel="prev" href="../part0/index.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="1.1"
        data-chapter-title="集成工程"
        data-filepath="part0/import_project.md"
        data-basepath=".."
        data-revision="Thu Apr 14 2016 20:52:34 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        简介
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="part0/index.html">
            
                
                    <a href="../part0/index.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        快速开始
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.1" data-path="part0/import_project.html">
            
                
                    <a href="../part0/import_project.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        集成工程
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="part0/demoyun_xing_xiao_guo_ji_shi_yong.html">
            
                
                    <a href="../part0/demoyun_xing_xiao_guo_ji_shi_yong.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        demo运行效果及使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="part0/get_start_play.html">
            
                
                    <a href="../part0/get_start_play.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        启动播放器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="part0/handle_video_ratio.html">
            
                
                    <a href="../part0/handle_video_ratio.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        处理视频比例
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="part0/handle_video_view_change.html">
            
                
                    <a href="../part0/handle_video_view_change.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        处理屏幕旋转
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="part0/pano_quick_start.html">
            
                
                    <a href="../part0/pano_quick_start.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.</b>
                        
                        全景播放
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="part0/hanlde_proguard.html">
            
                
                    <a href="../part0/hanlde_proguard.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.</b>
                        
                        关于混淆
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="part1/index.html">
            
                
                    <a href="../part1/index.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        第一章
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="part1/player_structure.html">
            
                
                    <a href="../part1/player_structure.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        播放器基本架构
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="part1/player_api_Intro.html">
            
                
                    <a href="../part1/player_api_Intro.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        LetvPlayer播放器API说明
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="part1/playcontext_introduction.html">
            
                
                    <a href="../part1/playcontext_introduction.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        PlayContext ApI说明
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="download/download_module.html">
            
                
                    <a href="../download/download_module.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        下载模块
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="download/download_letter.html">
            
                
                    <a href="../download/download_letter.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        快速接入
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="download/download_center.html">
            
                
                    <a href="../download/download_center.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.</b>
                        
                        DownloadCenter API说明文档
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="download/download_observer.html">
            
                
                    <a href="../download/download_observer.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.</b>
                        
                        LeDownloadObserver API说明文档
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.4" data-path="download/download_info.html">
            
                
                    <a href="../download/download_info.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.4.</b>
                        
                        LeDownloadInfo API 说明文档
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4" data-path="update.html">
            
                
                    <a href="../update.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.</b>
                        
                        更新说明
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="5" data-path="fqa.html">
            
                
                    <a href="../fqa.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>5.</b>
                        
                        Q&amp;A
                    </a>
            
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../" >简介</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="&#x96C6;&#x6210;&#x5DE5;&#x7A0B;">&#x96C6;&#x6210;&#x5DE5;&#x7A0B;</h1>
<h2 id="&#x62F7;&#x8D1D;&#x539F;&#x59CB;&#x6587;&#x4EF6;">&#x62F7;&#x8D1D;&#x539F;&#x59CB;&#x6587;&#x4EF6;</h2>
<p>&#x5728;demo&#x7684;assert&#x76EE;&#x5F55;&#x4E0B;&#x5B58;&#x653E;&#x4E86;&#x4E00;&#x4E9B;&#x57FA;&#x672C;&#x7684;&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#xFF0C;&#x9700;&#x8981;&#x62F7;&#x8D1D;&#x5230;&#x4F60;&#x7684;&#x5DE5;&#x7A0B;&#x7684;assert&#x76EE;&#x5F55;&#x4E2D;</p>
<p><img src="../img/import_assert.png" alt="&#x62F7;&#x8D1D;&#x539F;&#x59CB;&#x6587;&#x4EF6;"></p>
<h2 id="&#x5982;&#x4F55;&#x5C06;sdk&#x7684;demo&#x5BFC;&#x5165;&#x5230;eclipse">&#x5982;&#x4F55;&#x5C06;sdk&#x7684;Demo&#x5BFC;&#x5165;&#x5230;Eclipse</h2>
<p>Eclipse&#x2014;&gt;File-&gt;import-&gt;Android-&gt;Existing Android Code Into Workspace</p>
<p>&#x5168;&#x9009;&#x8FD9;&#x51E0;&#x4E2A;&#x5DE5;&#x7A0B;&#x5BFC;&#x5165;</p>
<p><img src="../img/demo_import_eclipse.png" alt="demo&#x5BFC;&#x5165;&#x5230;eclipse"></p>
<h2 id="&#x5982;&#x4F55;&#x96C6;&#x6210;&#x5230;eclipse">&#x5982;&#x4F55;&#x96C6;&#x6210;&#x5230;Eclipse</h2>
<h3 id="1&#x58F0;&#x660E;&#x6743;&#x9650;">1)&#x58F0;&#x660E;&#x6743;&#x9650;</h3>
<p>&#x5728;&#x4E3B;&#x5DE5;&#x7A0B;&#x7684;<code>AndroidManifest.xml</code>&#x4E2D;&#x58F0;&#x660E;&#x4EE5;&#x4E0B;&#x6743;&#x9650;&#xFF1A;</p>
<pre><code class="lang-xml">    <span class="hljs-tag">&lt;<span class="hljs-title">uses-permission</span> <span class="hljs-attribute">android:name</span>=<span class="hljs-value">&quot;android.permission.WRITE_EXTERNAL_STORAGE&quot;</span> /&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">uses-permission</span> <span class="hljs-attribute">android:name</span>=<span class="hljs-value">&quot;android.permission.READ_EXTERNAL_STORAGE&quot;</span> /&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">uses-permission</span> <span class="hljs-attribute">android:name</span>=<span class="hljs-value">&quot;android.permission.FLASHLIGHT&quot;</span> /&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">uses-permission</span> <span class="hljs-attribute">android:name</span>=<span class="hljs-value">&quot;android.permission.VIBRATE&quot;</span> /&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">uses-permission</span> <span class="hljs-attribute">android:name</span>=<span class="hljs-value">&quot;android.permission.READ_PHONE_STATE&quot;</span> /&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">uses-permission</span> <span class="hljs-attribute">android:name</span>=<span class="hljs-value">&quot;android.permission.ACCESS_FINE_LOCATION&quot;</span> /&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">uses-permission</span> <span class="hljs-attribute">android:name</span>=<span class="hljs-value">&quot;android.permission.ACCESS_WIFI_STATE&quot;</span> /&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">uses-permission</span> <span class="hljs-attribute">android:name</span>=<span class="hljs-value">&quot;android.permission.GET_TASKS&quot;</span> /&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">uses-permission</span> <span class="hljs-attribute">android:name</span>=<span class="hljs-value">&quot;android.permission.INTERNET&quot;</span> /&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">uses-permission</span> <span class="hljs-attribute">android:name</span>=<span class="hljs-value">&quot;android.permission.ACCESS_NETWORK_STATE&quot;</span> /&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">uses-permission</span> <span class="hljs-attribute">android:name</span>=<span class="hljs-value">&quot;android.permission.ACCESS_COARSE_LOCATION&quot;</span> /&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">uses-permission</span> <span class="hljs-attribute">android:name</span>=<span class="hljs-value">&quot;android.permission.RECEIVE_USER_PRESENT&quot;</span> /&gt;</span>
</code></pre>
<h3 id="2&#x52A0;&#x5165;cde&#x670D;&#x52A1;">2)&#x52A0;&#x5165;cde&#x670D;&#x52A1;</h3>
<p>&#x540C;&#x6837;&#x5730;&#xFF0C;&#x5728;&#x4E3B;&#x5DE5;&#x7A0B;&#x7684;<code>AndroidManifest.mxl</code>&#x58F0;&#x660E;&#x4EE5;&#x4E0B;&#x670D;&#x52A1;</p>
<pre><code class="lang-xml">     <span class="hljs-tag">&lt;<span class="hljs-title">service</span>
        <span class="hljs-attribute">android:name</span>=<span class="hljs-value">&quot;com.letv.pp.service.CdeService&quot;</span>
        <span class="hljs-attribute">android:process</span>=<span class="hljs-value">&quot;:cde&quot;</span> /&gt;</span>
</code></pre>
<h3 id="3&#x52A0;&#x5165;&#x76AE;&#x80A4;libary&#x53EF;&#x9009;">3)&#x52A0;&#x5165;&#x76AE;&#x80A4;Libary(&#x53EF;&#x9009;)</h3>
<p>&#x4E3B;&#x5DE5;&#x7A0B;&#x4F9D;&#x8D56;&#x4E2D;&#x52A0;&#x5165;&#x76AE;&#x80A4;Libary</p>
<p><img src="../img/skin_import.png" alt="&#x76AE;&#x80A4;&#x5BFC;&#x5165;"></p>
<h3 id="4&#x5BFC;&#x5165;&#x64AD;&#x653E;&#x5668;libary&#x53EF;&#x9009;">4)&#x5BFC;&#x5165;&#x64AD;&#x653E;&#x5668;Libary(&#x53EF;&#x9009;)</h3>
<blockquote>
<p>(&#x5982;&#x679C;&#x76AE;&#x80A4;&#x4E0D;&#x4F7F;&#x7528;&#xFF0C;&#x8BF7;&#x8D70;&#x8FD9;&#x6B65;,&#x5982;&#x679C;&#x4F7F;&#x7528;&#x76AE;&#x80A4;&#xFF0C;&#x8BF7;&#x5FFD;&#x7565;)</p>
</blockquote>
<p><img src="../img/playersdk_import.png" alt="&#x64AD;&#x653E;&#x5668;sdk&#x5BFC;&#x5165;"></p>
<hr>
<h2 id="&#x5982;&#x4F55;&#x5C06;sdk&#x7684;demo&#x5BFC;&#x5165;&#x5230;android-studio">&#x5982;&#x4F55;&#x5C06;Sdk&#x7684;Demo&#x5BFC;&#x5165;&#x5230;Android Studio</h2>
<h3 id="1&#xFF09;&#x9009;&#x62E9;&#x5BFC;&#x5165;&#x65B9;&#x5F0F;">1&#xFF09;&#x9009;&#x62E9;&#x5BFC;&#x5165;&#x65B9;&#x5F0F;</h3>
<p><img src="../img/demo_import_as.png" alt="&#x5BFC;&#x5165;&#x5230;as_step1"></p>
<h3 id="2&#xFF09;&#x9009;&#x5B9A;playerdemo">2&#xFF09;&#x9009;&#x5B9A;playerDemo</h3>
<blockquote>
<p>AS(android studio) &#x4F1A;&#x81EA;&#x5DF1;&#x627E;&#x5230;&#x8BE5;&#x5DE5;&#x7A0B;&#x5173;&#x8054;&#x7684;Libary</p>
</blockquote>
<p><img src="../img/demo_import_as_2.png" alt="&#x5BFC;&#x5165;&#x5230;as_step2"></p>
<h2 id="&#x5982;&#x4F55;&#x96C6;&#x6210;sdk&#x5230;android-studio&#x5DE5;&#x7A0B;">&#x5982;&#x4F55;&#x96C6;&#x6210;sdk&#x5230;Android Studio&#x5DE5;&#x7A0B;</h2>
<blockquote>
<p>&#x5982;&#x4F55;&#x5C06;sdk&#x96C6;&#x6210;&#x5230;&#x5728;Android Studio&#x5DE5;&#x7A0B;&#xFF0C;&#x53EF;&#x4EE5;&#x53C2;&#x7167;demo</p>
</blockquote>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../part0/index.html" class="navigation navigation-prev " aria-label="Previous page: 快速开始"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../part0/demoyun_xing_xiao_guo_ji_shi_yong.html" class="navigation navigation-next " aria-label="Next page: demo运行效果及使用"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../gitbook/app.js"></script>

    
    <script src="../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
